package com.hopool.shop.service.order;

import java.util.List;

import com.hopool.shop.exception.OrderException;
import com.hopool.shop.order.Order;
import com.hopool.shop.order.OrderProducts;
import com.hopool.shop.service.BaseServiceI;

public interface OrderServiceI extends BaseServiceI{
	
	public void addOrder(Order order)throws OrderException;
	
	public void processOrder(Order order)throws OrderException;
	
	public Order getOrderById(Long orderId)throws OrderException;
	
	public Order getOrderByCode(String code)throws OrderException;
	
	public List<OrderProducts> getOrderDetail(Long orderId)throws OrderException;
	
	public void deleteOrder(Order order)throws OrderException;
	
	public OrderProducts getOrderProduct(Long opId)throws OrderException;
	
	public void modifyOrderProducts(List<OrderProducts> ops)throws OrderException;
	
	public void deleteOrderProducts(List<OrderProducts> ops)throws OrderException;
}
